#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#create one set
basket={'apple','orange','apple','pear','banana'}
print(basket) #auto distinct
print('apple' in  basket)

set1=set('abracadabra')
print("set1-from string:",set1)
set2=set(['l', 'm', 'a', 'z', 'c'])
print("set1-from list:",set2)
#set(-)-letters in set1 but not in set2
print("set(-):",set1-set2)
#&-get the intersection of set1 and set2
print("set1&set2",set2&set1) #letters in both set1 and set2
print("set1|set2",set2|set1) #letters in set1 or set2
print("set1^set2",set1^set2) #letters not set1 or set2 ,but not both

